﻿using System;
using Catel.Logging;

namespace AnotarCatelSample;

public class LogListener :
    LogListenerBase
{
    public Action<string, LogEvent> Action;

    protected override void Write(ILog log, string message, LogEvent logEvent, object extraData, LogData logData, DateTime time) =>
        Action(message, logEvent);
}